﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MarvellousWorks.PracticalPattern.Concept.Configurating
{
    public class ParagraphConfigurationSectionBase:ConfigurationSection
    {
        private const string ExamplesItem = "examples";
        private const string DiagramsItem = "diagrams";

        [ConfigurationProperty(ExamplesItem,IsRequired =false)]
        public virtual ExampleConfigurationElementCollection Examples
        {
            get { return base[ExamplesItem] as ExampleConfigurationElementCollection; }
        }

        [ConfigurationProperty(DiagramsItem,IsRequired =false)]
        public virtual DiagramConfigurationElementCollection Diagrams
        {
            get { return base[DiagramsItem] as DiagramConfigurationElementCollection; }
        }

    }
}
